<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta content="text/html;charset=utf-8"></meta>
    <title>用户维护</title>
    <link rel="stylesheet" href="/static/js/common/bootstrap/css/bootstrap.min.css"></link>
    <link rel="stylesheet" href="/static/js/common/layer/theme/default/layer.css"></link>
    <link rel="stylesheet" href="/static/css/base.css"></link>

    <script src="/static/js/common/jquery/jquery-3.2.1.min.js"></script>
    <script src="/static/js/common/layer/layer.js"></script>
    <script src="/static/js/base/base.js"></script>
    <script>

        //删除记录
        function deleteRecord(data) {
            var url = "${basePath}" + "/bus/config/delete/";
            defaultDelRecord(data, url);
        }

        //修改模态窗弹出
        function modifyModal(data) {
            var url = "${basePath}" + "/bus/config/info/";
            defaultSkipModifyModal(data, url);
        }

        //修改提交
        function modifyRecord() {
            var url = "${basePath}" + "/bus/config/modify/";
            defaultUpdateRecord(url)
        }

        //新增提交
        function addRecord() {
            var url = "${basePath}" + "/bus/config/add/";
            defaultAddRecord(url);
        }


        function openAddModel(data){
            // alert($(data).attr("data-toggle"));
            $("#consName_add").attr("value", $(data).attr("data-toggle"));
            $("#busId_add").attr("value", ${listResult.remark.busId?default("")});

            $('#modal_add').modal('show');
        }
    </script>
</head>
<body>
 <@_top.top 1/>
<div class="container" style="padding-bottom: 15px;min-height: 300px; padding-top: 60px;">
    <div class="row">
        <@_left.bus_menu 3/>
        <div class="col-md-10  col-xs-10">
            <h2>配置列表(${listResult.remark.busName?default("")})</h2>
            <hr>
            <#--<form class="form-inline" id="queryForm" role="form">-->
                <#--<input type="text" name="username" class="form-control" id="queryName" placeholder="请输入名称">-->
                <#--<button type="button" onclick="listRecord(this)" class="btn btn-primary">查询</button>-->
                <#--<button type="button" class="btn btn-success" data-toggle="modal" data-target="#modal_add" >添加</button>-->
                <#--<!-- 表示应谨慎采取的动作 &ndash;&gt;-->
            <#--</form>-->
            <#--<hr>-->
            <!-- 表格 -->
            <div id="list_table">
            <#list listResult.list as consVO>
                <#if (consVO.configList?size>0) >
                    <table class="table table-hover table-bordered" id="role_grade">
                        <caption>
                            <h3>${consVO.consLabel?default("")}</h3>
                        </caption>

                        <tbody>

                        <#list consVO.configList as busConfigVO>
                            <tr>
                                <td class="col-md-4 text-center">${busConfigVO.configName?default("")}</td>
                                <td class="col-md-6 text-center">${busConfigVO.configValue?default("")}</td>
                            </tr>
                        </#list>
                        </tbody>
                    </table>
                    <tr style="height: 50px;"/>
                </#if>
            </#list>
            </div>


        </div>
    </div>
</div>


<script src="/static/js/common/bootstrap/js/bootstrap.min.js"></script>

</body>

</html>





